package com.xbongbong.saas.service;

import com.xbongbong.paas.pojo.dto.FormDataListDTO;
import com.xbongbong.paas.pojo.vo.PaasFormDataEsListVO;
import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.saas.domain.entity.ProductWarehouseEntity;
import com.xbongbong.saas.domain.entity.ext.ProductEntityExt;

import java.util.List;
import java.util.Map;
/**
 * 产品库存
 * @author Jian.Wang
 * @date 2019/2/18 9:24
 * @since v1.0
 * @version v1.0
 */
public interface ProductWarehouseService {

    Integer deleteByProductIdIn(String corpid, List<Long> productIdIn) throws XbbException;

    ProductWarehouseEntity getByKey(Integer key, String corpid);

    Integer getEntitysCount(Map<String, Object> param);


    /**
     * Description: 仓库一致性同步
     * @param corpid
     * @param dataId
     * @param name
     * @return void
     * @author 魏荣杰
     * @date 2019/8/6 10:31
     * @since v1.0
     */
    void dataConsistencyUpdateWarehouse(String corpid, Long dataId, String name);

    /**
     * 查看预警查询列表
     * @param formDataListDTO
     * @return
     * @throws XbbException
     */
    PaasFormDataEsListVO warningSearchList(FormDataListDTO formDataListDTO) throws XbbException;

}
